package com.puboot.module.blog.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.puboot.module.blog.model.Agreement;
import com.puboot.module.blog.model.Customer;

import java.util.List;

public interface CustomerService extends IService<Customer> {

    Customer getByUsername(String username);

    void regist(String username, String nicname, String password, String companyname, String deptname, String industry, String province, String city);

    IPage<Customer> pageCustomerAll(Customer customer, Integer pageNumber, Integer pageSize);

    Integer updateStateByIds(Integer state, List<Integer> ids);

    void changepassword(String username, String password);

    Agreement getAgreement();
}
